package com.reachol.objects; 

import java.sql.Timestamp; 
import com.jimet.objects.JimetObject; 
import com.reachol.objects.db.*;

public class User extends JimetObject 
{

	private long id; 
	private String fullname; 
	private String username; 
	private String mail;
	private long step; 
	private String password; 
	private String activationcode;
	private long status;
	private Timestamp tsUpdate; 
	private int deleted; 

	public User(long id) throws Exception 
 { 
		 this(); 
		 if( id != -1 ) 
			 this.load(id); 
 } 
	public User(boolean noInit){} 

	public User() throws Exception 
	{
		this.id=-1;
		this.fullname="";
		this.username="";
		this.mail="";
		this.step=-1;
		this.password="";
		this.activationcode="";
		this.status=0;
		this.tsUpdate = null;
		this.deleted = 0;
		setDb(UserDB.class); 
	}


	public long getStep() {
		return step;
	}
	public void setStep(long step) {
		this.step = step;
	}
	public void setId(long id) {
		 this.id=id; 
	}
	public long getId() {
		 return id; 
	}
	public void setFullname(String fullname) {
		 this.fullname=fullname; 
	}
	public String getFullname() {
		 return fullname; 
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setMail(String mail) {
		 this.mail=mail; 
	}
	public String getMail() {
		 return mail; 
	}
	public void setPassword(String password) {
		 this.password=password; 
	}
	public String getActivationcode() {
		return activationcode;
	}
	public void setActivationcode(String activationcode) {
		this.activationcode = activationcode;
	}
	public long getStatus() {
		return status;
	}
	public void setStatus(long status) {
		this.status = status;
	}
	public String getPassword() {
		 return password; 
	}
	public Timestamp getTsUpdate() {
		 return tsUpdate;
	}
	public void setTsUpdate(Timestamp tsUpdate) {
		 this.tsUpdate = tsUpdate;
	}
	public int getDeleted() {
		 return deleted;
	}
	public void setDeleted(int deleted) {
		 this.deleted = deleted;
	}
}

